<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateMineinfoTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('miner_info', function (Blueprint $table) {
            $table->bigIncrements('mid');
            $table->string('m_number',20);
            $table->string('m_pass',10);
            $table->string('m_type',20);
            $table->string('note',128)->nullable();
            $table->string('add_token',70)->default('');
            $table->engine = 'InnoDB';
            $table->charset = 'utf8';
            $table->collation = 'utf8_unicode_ci';
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('minerinfo');
    }
}
